<?php

namespace Modules\Admin\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class CommonStatusRequest extends FormRequest
{
    /**
     * php artisan module:make-request AdminRequest Admin
     */
      
    public function authorize()
    {
        return true;
    }
	public function rules()
    {
        return [
			'id' => 'is_positive_integer',
			'status' => 'is_status_integer',
			
        ]; 
    }  
	public function messages(){   
		return [
			'id.is_positive_integer' => '非法操作！',
			'status.is_status_integer' => '非法操作！',
		];
	}
}









